<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
	function addMessage(){
		var addurl = "messageController.do?addorupdate";
		$.dialog({
			content: 'url:'+addurl,
			lock : true,
			title:"交流",
			opacity : 0.3,
			cache:false,
			width:600,
			zIndex:1997,
			height:400,
			top:50,
			left:200,
		    ok: function(){
		    	iframe = this.iframe.contentWindow;
				saveObj();
				return false;
		    },
		    cancelVal: '关闭',
		    cancel: true /*为true等价于function(){}*/
		});
	}
</script>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="messageList" title="消息"
			actionUrl="messageController.do?selfdatagrid" idField="id" fit="true"
			sortName="sj" sortOrder="desc" queryMode="group">
			<t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
			<t:dgCol title="发送人" field="fsr" width="100" query="true"></t:dgCol>
			<t:dgCol title="发送内容" field="fsnr" width="300" query="true"></t:dgCol>
			<t:dgCol title="接收人" field="jsr" width="100"></t:dgCol>
			<t:dgCol title="时间" field="sj" formatter="yyyy-MM-dd hh:mm:ss" width="120"></t:dgCol>
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			<t:dgToolBar title="发言" icon="icon-add"
				url="messageController.do?addorupdateself" funname="add"></t:dgToolBar>
			<t:dgToolBar title="查看" icon="icon-search"
				url="messageController.do?addorupdateself" funname="detail"></t:dgToolBar>
		</t:datagrid>
	</div>
</div>